import request from './request';
export function show(data) {
    return request('/operations/cmcapsule/scan', 'get', data);
}
export function myRecords(data) {
    return request('/operations/rechargewalletrecord/myRecords', 'get', data);
}
export function getMessage(data) {
    return request('/operations/cmcapsule/scan', 'get', data);
}
export function payTorder(data) {
    return request('/pay/torder', 'post', data);
}

//获取支付数据
export function getPayData(data) {
    return request('/pay/torder/getPayData', 'get', data);
}
//设备解锁
export function openDoorForApp(data) {
    return request('/operations/cmcapsule/openDoorForApp', 'get', data);
}

//开门锁
export function openNormalDoor(doorId) {
    return request('/operations/cmdevice/openNormalDoor', 'get', {
        doorId: doorId
    });
}

//开闸
export function openGate(doorId, direction) {
    return request('/operations/cmdevice/openGate', 'get', {
        doorId: doorId,
        direction: direction
    });
}

//门店进门(指定门店ID方式)
export function openDoorByShopId(shopId, opt) {
    return request('/operations/cmdevice/openShopDoor', 'get', {
        shopId: shopId,
        opt: opt
    });
}
//扫码领红包
export function takeEnvelopeApi(data) {
    return request('/driver/QRHandler/takeEnvelope', 'post', data);
}
